#! /usr/bin/env python

import rospy
from std_msgs.msg import String

if __name__ == "__main__":
    rospy.init_node("demo01_pub_p")
    pub = rospy.Publisher("car", String, queue_size=10)
    msg = String()

    rate = rospy.Rate(1)
    count = 0;
    while not rospy.is_shutdown():
        count += 1
        msg.data = "hello " + str(count)
        pub.publish(msg)
        rate.sleep()





